from django.db import models

from report.models import InvolverInfo


class InvolverMotionPath(models.Model):
    involver = models.ForeignKey(InvolverInfo, on_delete=models.CASCADE, related_name="motion_path")
    begin_time = models.DateTimeField()
    end_time = models.DateTimeField()
    address = models.CharField(max_length=100, blank=True, null=True)
    status = models.IntegerField()
    create_time = models.DateTimeField(auto_now_add=True)
    modify_time = models.DateTimeField(auto_now=True)
    remark = models.TextField(blank=True, null=True)
    delete_flag = models.BooleanField(default=False)

    class Meta:
        db_table = 'involver_motion_path'
